package com.easipass.framework.eirframeworkwebapp;

import java.util.HashMap;
import java.util.Map;

public class QueryParams {
    private int pageSize = 0;
    private int pageNumber = 15;
    private String sortName = "";
    private String sortOrder = "desc";
    private Map<String,Object> param = new HashMap<>();

    public QueryParams(int pageSize, int pageNumber, String sortName, String sortOrder, Map<String, Object> param) {
        this.pageSize = pageSize;
        this.pageNumber = pageNumber;
        this.sortName = sortName;
        this.sortOrder = sortOrder;
        this.param = param;
    }

    public QueryParams() {
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Map<String, Object> getParam() {
        return param;
    }

    public void setParam(Map<String, Object> param) {
        this.param = param;
    }
}
